
document.getElementById('login-btn').addEventListener('click', () => {
    const username = document.getElementById('username').value;
    const password = document.getElementById('password').value;
    window.electronAPI.sendLog(`Logging in with ${username} and ${password}`);
    // 在这里添加连接服务器的逻辑
    window.electronAPI.userLogin(username, password)



});

document.getElementById('settings-btn').addEventListener('click', () => {
    window.electronAPI.openSettingsWindow();
});


